package com.gin.no_gay_alliance.base;

import android.view.LayoutInflater;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

/**
 * 生成ViewBinding对象接口
 *
 * @author : ginstone
 * @version : v1.0.0
 * @since : 2023/8/24 15:47
 **/
public interface ViewBindProvider<T> {
    /**
     * 生成ViewBinding对象
     *
     * @param inflater  渲染器
     * @param container 容器(Fragment用)
     * @return ViewBinding
     */
    T createViewBinding(@NonNull LayoutInflater inflater, @Nullable ViewGroup container);
}
